package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.RefundState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Refund对象", description = "")
public class Refund implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long customerId;

    private String number;

    private BigDecimal amount;

    @ApiModelProperty(value = "退的实付金额")
    private BigDecimal farePaidAmount;

    @ApiModelProperty(value = "退的充值金额")
    private BigDecimal balancePayAmount;

    @ApiModelProperty(value = "退的赠送金额")
    private BigDecimal balanceDonateAmount;

    @ApiModelProperty(value = "0 init 1 done 2 failed")
    private RefundState state;

    private String refundableType;

    private Long refundableId;

    private Date createdAt;

    private Date updatedAt;


}
